const fs=require('fs');

new Promise(function (resolve,reject){
    fs.readFile('./dist/1.txt','utf-8',function(err,dataStr){
        if(err){
            reject(err)
        }
        resolve(dataStr)
    })
})
.then()